<template>
	<div class="page-container">
		<div class="home">
			<el-row :gutter="15">
				<el-col :lg="18" :md="16" :sm="24">
					<div class="card card--last" style="height:500px;background: #fff" />
				</el-col>
				<el-col :lg="6" :md="8" :sm="24">
					<div class="card card--last">
						<category-ratio />
					</div>
				</el-col>
			</el-row>
		</div>
	</div>
</template>

<script>
import { mapGetters } from "vuex";
import CategoryRatio from "./components/category-ratio";
import { firstMenu } from "@/cool/modules/base/utils";

export default {
	components: {
		CategoryRatio
	},
	computed: {
		...mapGetters(["menuGroup"])
	},
	mounted() {
		const url = firstMenu(this.menuGroup[0].children);
		this.$router.push(url);
	}
};
</script>

<style lang="scss" scoped>
.page-container {
	overflow: hidden;
	box-sizing: border-box;
	.home {
		box-sizing: border-box;
		height: 100%;
		overflow: auto;
	}
}
</style>
